/*
 *	This file is part of Lounge-Cast.
 *
 *  Author:  	Markus Moormann
 *	E-mail:  	mmoorman@uni-osnabrueck.de
 *	Copyright:	University of Osnabrueck (Zentrum Virtuos)
 * 	Website:	www.uni-osnabrueck.de
 *	Date:		16.02.2011
 *
 *	Lounge-Cast is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *	Lounge-Cast is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Lounge-Cast.  If not, see <http://www.gnu.org/licenses/>.
 */
package backend.vo;

import java.util.List;

/**
 * class represents a User
 *
 * @author Markus Moormann
 */
public class UserVO {

	/**
	 * internal id of the user
	 */
	public int user_id;
	/**
	 * the name of the user
	 */
	public String user_name;
	/**
	 * email adress of the user
	 */
	public String user_email;
	/**
	 * whether to login via LDAP or not
	 */
	public boolean is_ldap;
	/**
	 * all playlists the user can edit
	 */
	public List<PlaylistVO> playlists;
	/**
	 * the user's password
	 */
	public String user_password;
	/**
	 * the group the user belongs to
	 */
	public GroupVO user_group;
	
	/**
	 * constructor
	 * 
	 * @param user_id the id of the user
	 * @param user_name the user name
	 * @param user_group the user group
	 */
	public UserVO(int user_id, String user_name, GroupVO user_group) {
		this.user_id = user_id;
		this.user_name = user_name;
		this.user_group = user_group;
	}

	/**
	 * default constructor
	 */
	public UserVO() {
		this.user_id = 0;
		this.user_name = "";
		this.user_group = new GroupVO();
	}

	public UserVO(int user_id) {
		this.user_id = user_id;
	}
	
}
